import React from 'react';
import { ExampleStateType, useSelector } from 'umi';
import styles from './index.less';

export default function IndexPage() {
  const { user } = useSelector((state: { Example: ExampleStateType }) => state.Example);

  return (
    <div>
      <div className={styles.title}>hello {user?.name}</div>
    </div>
  );
}
